setTextCursorRange

abstract fun setTextCursorRange(range: IntRange)

Sets the text cursor range (selection) within the text block that is currently being edited. If from equals to, the cursor is positioned at that index.

Parameters

range

the UTF-16 grapheme range to set as the selection.

Throws

if no text block is currently being edited.